package com.xwj.coupon.user.service.rpc;

import com.xwj.coupon.user.dto.req.CouponTemplateNumberReqDTO;
import com.xwj.coupon.user.framework.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description TODO
 * @Author xwj
 * @Date 2025/8/17
 */
@FeignClient(name = "coupon-admin")
public interface CouponAdminRpcService {
    @PostMapping("/api/merchant-admin/coupon-template/decrease-stock")
    Result<Void> decreaseNumberCouponTemplate(@RequestBody CouponTemplateNumberReqDTO requestParam);

    @PostMapping("/api/merchant-admin/coupon-template/increase-stock")
    Result<Void> increaseNumberCouponTemplate(@RequestBody CouponTemplateNumberReqDTO requestParam);
}
